package com.atguign.gulimall.ware.service;

import com.atguign.gulimall.ware.entity.WareSkuEntity;
import com.atguign.gulimall.ware.vo.FareVo;
import com.atguign.gulimall.ware.vo.SkuHasStockTo;
import com.atguign.gulimall.ware.vo.WareSkuLockVo;
import com.atguigu.common.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author liuxvru
 * @email liuxvru@163.com
 * @date 2024-01-13 21:45:13
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void addStock(Long skuId, Long wareId, Integer skuNum);

    List<SkuHasStockTo> getSkusHasStock(List<Long> skuIds);

    FareVo getFare(Long attrId);

    Boolean orderLockStock(WareSkuLockVo vo);
}

